package com.wanlian.netty.model;

public class TaskCalctor<T> {
    private long hasCalTimes;
    private long needTimes;
    private T target;


    public boolean hasAlreadyCalc() {
        if (hasCalTimes >= needTimes) {
            return true;
        } else {
            return false;
        }
    }


    public void addTimes() {
        this.hasCalTimes++;
    }


    public long getHasCalTimes() {
        return hasCalTimes;
    }

    public void setHasCalTimes(long hasCalTimes) {
        this.hasCalTimes = hasCalTimes;
    }

    public long getNeedTimes() {
        return needTimes;
    }

    public void setNeedTimes(long needTimes) {
        this.needTimes = needTimes;
    }

    public T getTarget() {
        return target;
    }

    public void setTarget(T target) {
        this.target = target;
    }


}
